package com.trsj.lnsj.mapper;

import java.sql.Timestamp;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.trsj.lnsj.entity.OrderDTO;

public interface OrderMapper {

    int insert(OrderDTO record);

    int updateOrderStatusById(@Param("orderId") String orderId, @Param("status") int status);

    OrderDTO selectByPrimaryKey(String orderId);

    List<OrderDTO> selectExpiredOrder(Timestamp time);

    Integer deleteByIDs(List<String> orderIds);
    List<OrderDTO> selectOrderByUserId(Long userId);
    // int updateByPrimaryKey(OrderDTO record);
}